<template>
  <tab-bar>
    <tab-bar-item to="/home">
      <img slot="item-icon" src="~@img/tabbar/cc-home.png" />
      <img slot="item-icon-active" src="~@img/tabbar/cc-home-active.png" />
      <span slot="item-text">首页</span>
    </tab-bar-item>
    <tab-bar-item to="/category">
      <img slot="item-icon" src="~@img/tabbar/category.png" />
      <img slot="item-icon-active" src="~@img/tabbar/category-active.png" />
      <span slot="item-text">分类</span>
    </tab-bar-item>
    <tab-bar-item to="/shopcart">
      <img slot="item-icon" src="~@img/tabbar/shop-cart.png" />
      <img slot="item-icon-active" src="~@img/tabbar/shop-cart-active.png" />
      <span slot="item-text">购物车</span>
    </tab-bar-item>
    <tab-bar-item to="/profile">
      <img slot="item-icon" src="~@img/tabbar/profile.png" />
      <img slot="item-icon-active" src="~@img/tabbar/profile-active.png" />
      <span slot="item-text">我的</span>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
  import TabBar from '@commoncpn/tabbar/TabBar.vue'
  import TabBarItem from '@commoncpn/tabbar/TabBarItem.vue'

  export default {
    components: { TabBar, TabBarItem }
  }
</script>
